﻿namespace Foggy.ViewModels
{
    using System;
    using System.ComponentModel;

    using Caliburn.Micro;

    using Foggy.Data.Extensions;
    using Foggy.Data.Users;

    /// <summary>
    /// User view model
    /// </summary>
    public class UserViewModel : Screen
    {
        /// <summary>
        /// The user
        /// </summary>
        private User user;

        /// <summary>
        /// Gets or sets the user.
        /// </summary>
        /// <value>
        /// The user.
        /// </value>
        public User User
        {
            get
            {
                return this.user;
            }

            set
            {
                this.user = value;                
                this.NotifyOfPropertyChange(() => this.User);
            }
        }        
    }
}